#include "stdafx.h"

#include "renderer.h"
#include "../client.h"
#include <process.h>

unsigned int __stdcall CRenderer::_thread_entrypoint(void *args)
{
	CRenderer * renderer = (CRenderer *)args;
	renderer->_init();
	client_init();

	while (renderer->_is_running)
	{
		renderer->_enterLoop();
		client_render();
		renderer->_leaveLoop();
	}

	_endthreadex(42);
	return 0;
}
